package com.yungu.swift.assets.passenger.model.enums;

/**
 * @author : cuixiuyin
 * @date : 2019/6/13
 */
public enum PassengerErrorEnum {

    /**
     * Passenger 模块错误码信息返回
     */
    GIFT_QUANTITY_LACK(6003, "兑换失败，优惠券已被领取完"),
    ACTIVITY_CLOSED(6004, "活动已失效"),
    ACTIVITY_NOT_OPEN(6005, "活动未开启"),
    NEW_USER_ACTIVITY(6006, "领取失败，您已是老用户，可登陆用户端参与更多活动，谢谢！"),
    OLD_USER_ACTIVITY(6007, "领取失败，此为老用户礼包，您未注册，可先注册，再领取！"),
    GIFT_UPDATE_ERROR(6008, "更新礼包出错"),
    PASSENGER_STATUS_INVALID(6009, "乘客状态异常"),
    RECHARGE_MONEY_ZERO(6010, "充值金额不允许为0"),
    ;

    private Integer code;
    private String msg;

    PassengerErrorEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
